package com.dnjn.mes.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.mes.biz.enums.MessageType;
import com.dnjn.mes.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 故障信息表
 * </p>
 *
 * @author Amber
 * @since 2023-08-04
 */
@Accessors(chain = true)
@Getter
@Setter
@TableName("mes_message")
public class MesMessage extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @TableId(value = "meessage_id", type = IdType.ASSIGN_ID)
    private Long meessageId;


    private LocalDateTime startDatetime;

    private LocalDateTime endDatetime;

    /**
     * 0-1 保养完成|故障解除后置0不再显示
     */
    private String messageStatus;

    /**
     * WORKPIECE_MAINTAIN-保养信息,WORKPIECE_EXCEPT-故障信息
     */
    private MessageType messageType;

    private Long workpieceId;

    /**
     * 仅故障信息类型时
     */
    private Long exceptId;

    /**
     * 提示信息
     */
    private String message;

    private String messageCn;
    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;

    private Long equipmentId;

}
